#ifndef __BSP_COMPASS_H
#define __BSP_COMPASS_H
#include "stm32f4xx.h"
#include "stdio.h"
#include "stm32f4xx_conf.h"
#include <string.h>
#include "stdlib.h"
#include "math.h"

#define COMPASS_RECEIVE_MODE 1

extern float JD;

typedef struct {
    short Angle[3];
    short T;
} SAngle;

extern SAngle stcAngle;

void USART3_COMPASS_Init(void);
void CopeSerial3Data(unsigned char ucData);
void HWT101_to_0(void);
float compass_b(void);

#endif